package org.tech4j.captcha.api;

import org.tech4j.common.spi.ExtensionLoader;

/**
 * @program: tech4j
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/4 11:34
 **/
public class CaptchaStoreFactory {

    private CaptchaStoreFactory() {

    }

    /**
     * new instance of CaptchaStore
     * @param storeType  storeType
     * @return CaptchaStore
     */
    public static CaptchaStore newInstance(String storeType) {
        return ExtensionLoader.getExtensionLoader(CaptchaStore.class).getJoin(storeType);
    }
}
